home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / cosmicfozmik.swf / scripts / frame_7 / PlaceObject2_110_11 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-09-27  |  909 b   |  34 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.gameOver == 1)
  3.    {
  4.       _visible = false;
  5.    }
  6.    if(_root.gameOn == 1)
  7.    {
  8.       if(isNegative == 0 && _root.negativeColor == 1)
  9.       {
  10.          myColor.negative();
  11.          isNegative = 1;
  12.       }
  13.       if(isNegative == 1 && _root.negativeColor == 0)
  14.       {
  15.          myColor.setTransform(_root.origStars);
  16.          isNegative = 0;
  17.       }
  18.       _X = _X - _root.groundSpeed / 2;
  19.       if(_X < - _width)
  20.       {
  21.          removeMovieClip(this);
  22.       }
  23.       if(this._x <= 600 && this.dupeOnce == 1)
  24.       {
  25.          this.duplicateMovieClip("stars" + _root.starsCount,_root.i);
  26.          _root["stars" + _root.starsCount]._y = this._y;
  27.          _root["stars" + _root.starsCount]._x = this._x + this._width - 5;
  28.          _root.i = _root.i + 1;
  29.          this.dupeOnce = 0;
  30.          _root.starsCount = _root.starsCount + 1;
  31.       }
  32.    }
  33. }
  34.